#pragma once
class vector
{
public:
    vector(int s) : sz{s}, elem(new double[s]{0}) {}
    ~vector() { delete[] elem; }
    int size() const { return sz; }
    double get(int n) { return elem[n]; }
    void set(int n, double v) { elem[n] = v; }

private:
    int sz;
    double *elem;
};